package com.atguigu.srb.sms.feignClient.fallback;

import com.atguigu.srb.result.ResponseVo;
import com.atguigu.srb.sms.feignClient.CoreFeignClient;
import org.springframework.stereotype.Component;

/**
 * ClassName: CoreFeignClientFallback
 * Package: com.atguigu.srb.sms.feignClient.fallback
 * Description:
 *
 * @Author 刘强
 * @Create 2024/4/23 9:46
 * @Version 1.0
 */
@Component
public class CoreFeignClientFallback implements CoreFeignClient {
    @Override
    public ResponseVo isMobileUsed(String mobile) {
        return ResponseVo.error().message("远程访问服务超时").addData("isMobileUsed",false);
    }
}
